<?php

class Ext_Forms_EditAcl extends Ext_Forms_BasicForm
{

    
    public function init()
    {
        parent::init();
        $element = new Zend_Form_Element_Text( 'role' );
        $element->setAttrib('readonly', 'readonly')->setAttrib('disabled', 'disabled');
        $this->addElement( $element );

        $element = new Zend_Form_Element_Text( 'priority' );
        $element->setRequired( true )->addValidator( 'NotEmpty' )->addValidator( 'digits' );
        $this->addElement( $element );

        $element = new Zend_Form_Element_Select( 'resource' );
        $this->addElement( $element );

        $element = new Zend_Form_Element_Text( 'operation' );
        $this->addElement( $element );

        $element = new Zend_Form_Element_Select( 'permission' );
        $this->addElement( $element );
    }
}
